package com.dao.impl;

import java.util.List;

import org.hibernate.Query;
import org.springframework.orm.hibernate3.support.HibernateDaoSupport;

import com.dao.FilterDao;
import com.enetiy.Signup;
import com.enetiy.Users;

public class FilterDaoImpl extends HibernateDaoSupport implements FilterDao {

	@Override
	public Signup selectSignUp(String naming) throws Exception {
		Query query = this.getSession().createQuery("from Signup where naming=?");
		query.setParameter(0, naming);
		List <Signup>list = query.list();
		return list.isEmpty()?null:list.get(0);
	}

	
}
